<?php echo form_open($this->curl . '/create', 'id="create_form"')?>
<br />
<table class="nostyle" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td>
		<?php echo $this->validation->error_string?>
		<table class="nostyle" width="100%" border="0" cellpadding="3" cellspacing="0">
		<tr>
			<th style="width: 180px;"><?php echo $this->geo_country_model->fields['name']?>:<?php $this->load->view('_elements/obligatory');?></th>
			<th><?php echo form_dropdown('id_countries', $this->geo_country_model->getSelectOptions(), array($this->validation->id_countries), 'id="id_countries" onchange="loadStates(this.value)"', TRUE)?></th>
		</tr>
		<tr>
			<th style="width: 180px;"><?php echo $this->geo_state_model->fields['name']?>:<?php $this->load->view('_elements/obligatory');?></th>
			<th id="place_states"><?php echo form_dropdown('id_states', $this->geo_state_model->getSelectOptions($this->validation->id_countries), array($this->validation->id_states), null, TRUE)?></th>
		</tr>
		<tr>
			<th style="width: 180px;"><?php echo $this->geo_region_model->fields['name']?>:<?php $this->load->view('_elements/obligatory');?></th>
			<th><?php echo form_input('name', $this->validation->name, 'class="input-text" size="50"')?></th>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2">			
				<input name="edit" type="submit" class="input-submit" id="submit" value="<?php echo T_('Submit')?>" />
				<input name="reset"  type="reset"  class="input-submit" id="reset" value="<?php echo T_('Reset')?>" onclick="$('#create_form input[type=text]').val('');" />
			</td>
		</tr>
		</table>

	</td>
</tr>
</table>
<?php echo form_close()?>